﻿using Common.Library;
using System;
using Validate.Library;

namespace Authority.Model
{
    /// <summary>
    /// 登陆传输数据
    /// </summary>
    public class LoginRequest
    {
        /// <summary>
        /// 账号
        /// </summary>
        [Validate(ValidateType.NotEmpty|ValidateType.MaxLength,MaxLength = 25, Description = "账号")]
        public String LoginName
        {
            get; set;
        }

        /// <summary>
        /// 密码
        /// </summary>
        [Validate(ValidateType.NotEmpty|ValidateType.MaxLength,MaxLength = 50,Description = "密码")]
        public String Password
        {
            get; set;
        }

        /// <summary>
        /// 验证码
        /// </summary>
        [Validate(ValidateType.MatchingRegex|ValidateType.MaxLength,Regex= ValidateRegex.Number,MaxLength = 4,Description = "验证码")]
        public String VialdCode
        {
            get; set;
        }
    }
}
